<?php 
	global $router;
	function ActiveMenu($id) {
		$router = new Router();
		echo ($router->id == $id ? "-active" : "");
	}
?>

<li class="product-1-cms<?php ActiveMenu("jbox"); ?>"><a href="<?php echo $router->lang; ?>/game/jbox"><span></span></a></li>
<li class="product-2-cms<?php ActiveMenu("jboxadvanced"); ?>"><a href="<?php echo $router->lang; ?>/game/jboxadvanced"><span></span></a></li>
<li class="product-3-cms<?php ActiveMenu("jmglobal"); ?>"><a href="<?php echo $router->lang; ?>/game/jmglobal"><span></span></a></li>